<? include_once("../../../common/common_setting_unit.php"); //引入通用的设置文件?>

<?
//引入所有子系统信息
include_once("../../../common/script/extender_import.php");


//**获取当前板块资料，必然载入，后续很多读取板块数据库的表格，都写成动态的了。
include_once("script/this_plate.php");




    $table= $table_prefix.$this_plate['table']['data'];


    $nid  =$_REQUEST['nid'];

    $_data['ai_delete_status']="已删除";

    //写个语句，更新数据的delete status状态
    $_delete_sql="update ".$table." set delete_status='已删除' where nid in ({$nid})";


    $query=execute_query($_delete_sql);



    if($query){
        $arr['status'] = 200;
        $arr['info'] = '删除成功';
        die(json_encode($arr)) ;
    }
    else
    {
        $arr['status'] = 201;
        $arr['info'] = '删除失败';
        die(json_encode($arr)) ;
    }

?>



